]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Update WorkspaceLayout workarea on changes
authorSebastian Keller <skeller@gnome.org>
Tue, 16 Mar 2021 20:26:33 +0000 (21:26 +0100)
committerSebastian Keller <skeller@gnome.org>
Tue, 11 May 2021 00:36:54 +0000 (02:36 +0200)
commit234024c4f4490b1cd8a3a0d797cb58fd013abd9f
tree65d225f821fb87edbf1e10fb2f6a9713ae255ed4
parenta08355931f40bb0ee6a6989e373757d39dea63cb
workspace: Update WorkspaceLayout workarea on changes

Previously the workarea was only set on construction and then never
updated. As a result the preferred width and height as well as the
allocation were based on an outdated workarea size when it changed after
construction. This for example was happening during the startup
animation, for which the WorkspaceLayout is constructed before the panel
is shown. This caused the workspace in the overview to be slightly
smaller when it is first shown and the overview closing animation to
not expand the workspace to the correct size the first time it is
closed.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3945
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3816

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1771>
js/ui/workspace.js